<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>翻译</title>
    <link rel="stylesheet" href="css/index.css">
</head>
<body>
    <div class="container">
        <div class="header">
            <div class="box">
                <h1>翻译</h1> 
                <p>中英互译</p>
            </div>
        </div>
    </div>
    <div class="main">
        <div class="container">
            <div class="button">
                <button class="color">中文</button>
                <button class="color1">英文</button>
                <button class="huan" onclick="switchLan(1)">转换</button> 
                <button class="color2">英文</button>
                <button class="color3">中文</button>
            </div>
            <div class="text">
                 <div class="left">
<!--                     <input type="text" id="one">-->
                <textarea id="one" rows="5"></textarea>
                 </div>
                 <div class="right">
<!--                     <input type="text" id="two" class="dd" disabled>-->
                     <textarea  id="two" class="dd"  rows="5" readonly="readonly" placeholder="翻译"></textarea>
                 </div>
            </div>
            <div class="fanyi">
                <button onclick="up(0)">翻译</button>
            </div>
        </div>
    </div>
    <script src="js/script.js"></script>
</body>
</html>